package learn_sync

import (
	"fmt"
	"sync"
	"time"
)

func SyncClass() {
	l := &sync.Mutex{}
}

func lockFunc(lock *sync.Mutex) {
	lock.Lock()
	fmt.Println("working...")
	time.Sleep(1 * time.Second)
	lock.Unlock()
}
